/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package merlion.common.session.stateless;

import java.util.Collection;
import javax.ejb.Local;
import merlion.common.entity.JobToDo;
import merlion.common.entity.Staff;
import merlion.crm.sopm.entity.SalesOrder;
import merlion.crm.sopm.entity.SalesQuotation;
import merlion.scm.lcm.entity.DeliveryOrder;

/**
 *
 * @author Zhang Ying
 */
@Local
public interface JobListSessionBeanLocal {

    public SalesOrder getRelatedSalesOrder(Long relatedObjectId);

    public SalesQuotation getRelatedSalesQuotation(Long relatedObjectId);

    public Staff getUpdatedStaff(Long id);

    public void addNewJob(Long accId, JobToDo jobTD);

    public Collection<JobToDo> getAllMyJobs(Long accId);

    public JobToDo getJobToDo(Long id);

    public boolean markJobStatusAsDone(Long id);

    public Collection<JobToDo> getJobsFromDep(String department);

    public Staff getStaffByJobId(Long id);

    public boolean haveThisJobAlready(String jobType, Long relatedObjectId);

    public Collection<JobToDo> getAllMyPendingJobsDESC(Long accId);
    
    public DeliveryOrder getRelatedDeliveryOrder(Long relatedObjectId); 

}
